package com.ebelter.btcomlib.models.bluetooth.products.bpm.bean;


import com.ebelter.btcomlib.models.db.AppDatabase;
import com.raizlabs.android.dbflow.annotation.Column;
import com.raizlabs.android.dbflow.annotation.PrimaryKey;
import com.raizlabs.android.dbflow.annotation.Table;
import com.raizlabs.android.dbflow.structure.BaseModel;

@Table(database = AppDatabase.class)
public class BpmMesureResult extends BaseModel{

    public static final String TAG = "BpmMesureResult";

    @PrimaryKey(autoincrement = true)//ID自增
    public long id;

    /*用户标识id，必须保证唯一性*/
    @Column
    public long userID;


    @Column
    public String authKey;

    @Column
    public int mesureUnit;//0代表mmHg 1代表KPA

    @Column
    public int mesureStation;//0正常数据 1正在测量的数据


    /*测量时间*/
    @Column
    public int systolicPressure;//收缩压
    /*测量时间*/
    @Column
    public int diastolicPressure;//舒张压
    /*测量时间*/
    @Column
    public int pulse;//脉搏
    /*测量时间*/
    @Column
    public String testTime;



    @Override
    public String toString() {
        return "BpmMesureResult{" +
                "id=" + id +
                ", userID=" + userID +
                ", mesureUnit=" + mesureUnit +
                ", mesureStation=" + mesureStation +
                ", systolicPressure=" + systolicPressure +
                ", diastolicPressure=" + diastolicPressure +
                ", pulse=" + pulse +
                ", testTime='" + testTime + '\'' +
                '}';
    }
}
